<?php
/*************************************************/
/*     __            __    ____                  */
/*    / / ___  ____ / /_  / __/__  ____ __ ___   */
/*   / /_/ -_|/ __//  _/ _\ \/ ° // __// // _ \  */
/*  /___/\__//_/  /_/   /___/\__//_/  /_//_//_/  */
/*                                               */
/*************************************************/


/* inclusion des controleurs */
$controleurPath = '../controleur/';
$controleur = array('Dispatcher.php', 'Controleur.php', 'IndexControleur.php');
foreach($controleur as $c){
	include_once $controleurPath.$c;
}

/* inclusion des vue */
$vuePath = '../vue/';
$vue = array('Vue.php','MainVue.php' , 'IndexVue.php');
foreach($vue as $v){
	include_once $vuePath.$v;
}

/* inclusion des modeles */
$modelePath = '../modele/';
$modele = array('ModelBase.php', 'Menu.php');
foreach($modele as $m){
	include_once $modelePath.$m;
}

/* inclusion des modules */
$module = array('Utilisateur', 'Actu', 'Vehicule');
foreach($module as $m){
	include_once $controleurPath.$m.'Controleur.php';
	include_once $vuePath.$m.'Vue.php';
	include_once $modelePath.$m.'.php';
	
}

/* autres inclusion */
include_once '../base/Connexion.php';
include_once '../utile/Utile.php';


session_start();

$disp = new Dispatcher();
$disp->dispatch();
?>